package com.tanhua.api.mongo;

import com.tanhua.mongo.Publish;
import com.tanhua.vo.PageBeanVo;

public interface PublishApi {

    String save(Publish publish);

    // 查询我的动态
    PageBeanVo findAlbumByPage(Integer pageNum, Integer pageSize, Long userId);

    // 查询好友动态
    PageBeanVo findTimeLineByPage(Integer pageNum, Integer pageSize, Long userId);

    // 查询推荐动态
    PageBeanVo findRecommendByPage(Integer pageNum, Integer pageSize, Long userId);

    //查询单条动态
    Publish findPublishById(String publishId);

    // 后台：查询用户动态
    PageBeanVo findMessages(Integer pageNum, Integer pageSize, Long userId,Integer state);

    void updateState(String publishId, int state);

    Publish findByPid(String pid);
}